# TileNode

**Description:**

&emsp;&emsp;The TileNode class to render Tilemaps from TMX file in game scene tree hierarchy.

**Class Object:** [TileNode Class](/docs/api/Class%20Object/TileNode).

**Inherits from:** [Node](/docs/api/Class/Node).

## depthWrite

**Type:** Field.

**Description:**

&emsp;&emsp;Whether the depth buffer should be written to when rendering the tilemap (default is false).

**Signature:**
```tl
depthWrite: boolean
```

## blendFunc

**Type:** Field.

**Description:**

&emsp;&emsp;The blend function for the tilemap.

**Signature:**
```tl
blendFunc: BlendFunc
```

## effect

**Type:** Field.

**Description:**

&emsp;&emsp;The tilemap shader effect.

**Signature:**
```tl
effect: SpriteEffect
```

## filter

**Type:** Field.

**Description:**

&emsp;&emsp;The texture filtering mode for the tilemap.

**Signature:**
```tl
filter: TextureFilter
```

## getLayer

**Type:** Function.

**Description:**

&emsp;&emsp;Get the layer data by name from the tilemap.

**Signature:**
```tl
getLayer: function(self: TileNode, layerName: string): Dictionary | nil
```

**Parameters:**

| Parameter | Type | Description |
| --- | --- | --- |
| layerName | string | The name of the layer to get from the tilemap. |

**Returns:**

| Return Type | Description |
| --- | --- |
| Dictionary | The layer data as a dictionary. If the layer is not found, it will return nil. |